package com.liuyjy.redis.lock;


/**
 * @Author liuyjy
 * @Date 2025/2/7 12:33
 * @Description: 分布式锁常量
 **/
public class RedissonLockConstant {

    /**
     * 无key
     */
    public static final String NONE_KEY = "NONE";

    /**
     * 默认拥有者
     */
    public static final String DEFAULT_OWNER = "DEFAULT";

    /**
     * 默认过期时间
     */
    public static final int DEFAULT_EXPIRE_TIME = -1;

    /**
     * 默认等待时间
     */
    public static final int DEFAULT_WAIT_TIME = -1;
    //public static final int DEFAULT_WAIT_TIME = Integer.MAX_VALUE;

    /**
     * 未获得锁提示
     */
    public static final String NO_LOCK_MSG = "未获得锁";
}
